package com.siants.girl.exception;

import com.siants.girl.enums.ResultEnum;
import lombok.Data;

@Data
public class GirlException extends RuntimeException{

    private Integer code;

    /*public GirlException(Integer code, String message) {
        super(message);
        this.code = code;
    }*/

    public GirlException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
}
